]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: Add tooltip to the "Capture" button
authorAutomeris naranja <automerisnaranja@tutanota.com>
Thu, 2 Mar 2023 21:50:36 +0000 (18:50 -0300)
committerAutomeris naranja <104251-automerisnaranja@users.noreply.gitlab.gnome.org>
Thu, 2 Mar 2023 21:51:05 +0000 (21:51 +0000)
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5448

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2654>

js/ui/screenshot.js

index bf54eb0691a9d6157f9bd5f2011b6e2580b29ec4..48ca1ae764c08f542b4e7ba39f6e37420f54cfb1 100644 (file)
@@ -1254,6 +1254,13 @@ var ScreenshotUI = GObject.registerClass({
         this._captureButton.set_child(new St.Widget({
             style_class: 'screenshot-ui-capture-button-circle',
         }));
+        this.add_child(new Tooltip(this._captureButton, {
+            /* Translators: since this string refers to an action,
+            it needs to be phrased as a verb. */
+            text: _('Capture'),
+            style_class: 'screenshot-ui-tooltip',
+            visible: false,
+        }));
         this._captureButton.connect('clicked',
             this._onCaptureButtonClicked.bind(this));
         this._bottomRowContainer.add_child(this._captureButton);